package com.lyon.custom.core;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.core.env.MapPropertySource;

import java.util.Map;

/**
 * @author LeeYan9
 * @since 2021-11-26
 */
@Getter
@Setter
public class LyonPropertySource extends MapPropertySource {

    private String tenantId;
    private String group;
    private String dataId;
    private boolean refresh;
    private long lastModifierTime;

    public LyonPropertySource(String group, String dataId, boolean refresh, long lastModifierTime, String name, Map<String, Object> source) {
        super(name, source);
        this.group = group;
        this.dataId = dataId;
        this.refresh = refresh;
        this.lastModifierTime = lastModifierTime;
    }
}
